package com.jiyun.mapper;

import com.reading.pojo.Recharge;
import com.reading.pojo.RechargeDto;
import com.reading.pojo.RechargeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RechargeMapper {
    void saveRecharge(Recharge recharge);

    Recharge findOne(String code);

    void updateOne(RechargeVo rechargeVo);

    Recharge findById(Integer id);

    List<Recharge> findAll(@Param("r") RechargeDto rechargeDto);

    void saveExchange(Recharge recharge);
}
